package com.hong.concurrent.chapter16;

/**
 * @Author csh
 * @Description 每隔一秒打印一次，休眠10秒后关闭线程
 * @Date 2018/7/10 20:58
 */
public class CounterTest {

    public static void main(String[] args) throws InterruptedException {
        CounterIncrement counterIncrement = new CounterIncrement();
        counterIncrement.start();

        Thread.sleep(10_000L);
        counterIncrement.close();
    }
}
